package com.yqg.protection.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * record_notice 实体类
 *
 * @author 小宇
 * @since 2024-09-13
 */
@Getter
@Setter
@TableName("record_notice")
@ApiModel(value = "RecordNotice对象", description = "")
public class RecordNotice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ID", index = 0)
    @ApiModelProperty("自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty(value = "通知类型", index = 1)
    @ApiModelProperty("通知类型")
    private String type;

    @ExcelProperty(value = "内容", index = 2)
    @ApiModelProperty("内容")
    private String content;

    @ExcelProperty(value = "通知人", index = 3)
    @ApiModelProperty("通知人")
    private String notifier;

    @ExcelProperty(value = "电话", index = 4)
    @ApiModelProperty("电话")
    private String tele;

    @ExcelProperty(value = "通知时间", index = 5, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("通知时间")
    private LocalDateTime noticeDate;

}
